package com.myapp.struts.menu;

import java.util.ArrayList;

public class USEveningText {

    private static USEveningText usEveningTextObj;
    ArrayList<FoodItems> usEveningTextArray = new ArrayList<FoodItems>();

    public static synchronized USEveningText getSingletonObject() {
        if (usEveningTextObj == null) {
            usEveningTextObj = new USEveningText();
        }
        return usEveningTextObj;
    }

    public Object clone() throws CloneNotSupportedException {
        throw new CloneNotSupportedException();
    }

    public String getUSEveningText(String fileLoc) {
        String fileName = "";
        MenuRead menuReadObj = new MenuRead();
        usEveningTextArray = menuReadObj.ReadMenu(Constants.US);
        
        MenuGenerate menuGenerateObj = new MenuGenerate();
        usEveningTextArray = menuGenerateObj.GenerateMenu(usEveningTextArray, "Evening Only");

        MenuFormat menuFormatObj = new MenuFormat();
        fileName = menuFormatObj.FormatMenu(usEveningTextArray, Constants.TEXT, fileLoc);
        return fileName;

    }
}
